package com.bobo.service;

import com.bobo.pojo.Permission;
import com.bobo.pojo.Role;
import java.util.List;

public interface IRoleService {

    public List<Role> findAll() throws Exception;

    void save(Role role) throws Exception;

    Role findById(String roleId);

    void deleteRoleById(String roleId);

    List<Permission> findOtherPermissions(String roleId);

    void addPermissionToRole(String roleId, String[] permissionIds);
}
